﻿#include "main.h"
#include "TextView.h"
#include "ImageView.h"

static View* BuildView()
{
	View* v = new TextView("container");
	v->AddSubView(new TextView("embedded text"));
	v->AddSubView(new ImageView("image A"));

	auto imageView = new ImageView("image B");
	imageView->AddSubView(new ImageView("embedded image"));

	v->AddSubView(imageView);
	return v;
}

int main()
{
	auto view = BuildView();
	view->Draw();
	delete view;
	return 0;
}
